<?php
$username=$_SESSION['username'];
$sql="select * from tb_pendaftar where username='".$username."'";
//echo $sql;
$qry=mysql_query($sql);
$hasil=mysql_fetch_array($qry);

$hasil=mysql_query("select tb_pendaftar.id_pendaftaran,
						tb_pendaftar.no_pendaftaran,
						tb_pendaftar.nama,
						tb_pendaftar.asal_sekolah,
						tb_pendaftar.alamat,
						tb_pendaftar.no_hp,
						tb_pendaftar.tgl_daftar,
						");
?>
       <table cellpadding="4" cellspacing="1">
        
          <?php
		  	while ($r=mysql_fetch_array($qry)){
      
	  
      		echo " Selamat Datang , <b>".$r['nama']."</b>
			<hr  />
			<tr>
					<td>no_pendaftaran</td><td>: $r[no_pendaftaran]</td>
				  </tr><tr>	
					<td>Nama</td><td>: ".$r['nama']."</td>
				  </tr><tr>
					<td>Asal Sekolah</td><td>: ".$r['asal_sekolah']."</td>
				  </tr><tr>
					<td>Alamat</td><td>: ".$r['alamat']."</td>
				  </tr><tr>					
					<td>No HP</td><td>: ".$r['no_hp']."</td>
				  </tr><tr>
					<td>Tanggal Daftar</td><td>: ".$r['tgl_daftar']."</td>
		        </tr>";
			
		  ?>
        </table>
        
        <hr  />
        
        <?php 
			}
		?>
    </div>
    
    
</div>
<?php 





?>
